[PHP source code] explode and implode functions, explodeimplode. [PHP source code] explode and implode functions, explodeimplodeexplode and implode functions are mainly used for conversion between strings and arrays, for example, after a parameter
PHP source code reading: explode, implode functions, explode and implode functions are mainly used for conversion between strings and arrays. for example, after obtaining a parameter, a character is used to separate the string, or combine the
[PHP source code] explode and implode functions, explodeimplode
The explode and implode functions are mainly used for conversion between strings and arrays. For example, after obtaining a parameter, you can split the string based on a character or
Http://www.w3school.com.cn/php/func_string_implode.aspPHP implode () functionPHP String functionInstanceTo combine array elements into strings:?>Running an instanceThe first parameter is optional, so it can also be called.echo Implode ("",
Instance
Combine array elements into a single string:
Definition and usage
The implode () function returns a string that is composed of array elements.
Note: the implode () function accepts two parameter orders. However, for historical reasons,
Definition and usageThe implode () function returns a string that is composed of array elements.Note: the implode () function accepts two parameter orders. However, for historical reasons, explode () is not possible, and you must ensure that the
This article mainly introduces about PHP source one: Explode and implode functions, has a certain reference value, now share to everyone, have the need for friends can refer to
First, explode and implode functionsArray explode (string separator,
Definition and usage
The implode () function combines array elements into a string.Syntax
Implode (separator, array)
Parameters
Description
Separator
Optional. Specifies the content to be placed between array
The definition constants of constants are case-sensitive by default, if define (' AA ', 20,true) denotes case-insensitive, the output name is generally capitalizedBOOL Define ( string $name , Mixed $value [, BOOL $case_insensitive = False ])
I. Definition and scope of PHP Variables
Variable:When calling properties in a method, you cannot directly use echo. You must use the $ this object in the class.
1. php variable definition and usage: starting with an underscore ^ [A-Za-Z _] \ W *
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.